﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Teein.Proxy.Bot.DAL;
using Teein.Proxy.Bot.Model;
using MongoDB.Driver;

namespace Teein.Proxy.Bot.BLL
{
    public class Site
    {
        private SiteDAL sd = new SiteDAL();

        public bool Insert(SiteInfo si)
        {
            return sd.Insert(si);
        }

        public bool Update(SiteInfo si)
        {
            return sd.Update(si);
        }

        public bool Delete(SiteInfo si)
        {
            return sd.Delete(si);
        }

        public bool Delete(IMongoQuery mq = null)
        {
            return sd.Delete(mq);
        }

        public SiteInfo FindOne(IMongoQuery mq = null)
        {
            return sd.FindOne(mq);
        }

        public IList<SiteInfo> Find(IMongoQuery mq = null)
        {

            return sd.Find(mq);
        }
    }
}
